<?php

namespace App\Model\Traits;

use App\Model\CourseTask;

trait HasTaskable
{
    public function task()
    {
        return $this->morphOne(CourseTask::class, 'taskable');
    }
}
